package com.slz3.business.module.systemManagement.sysPermissions.service;

import com.slz3.business.module.systemManagement.sysPermissions.domain.SysPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface SysPermissionsService {

    SysPermissions save(SysPermissions sysPermissions);

    Page<SysPermissions> page(MultiValueMap<String,String> queryParams);

    SysPermissions modify(SysPermissions sysPermissions);

    Optional<SysPermissions> single(UUID uuid);

    List<SysPermissions> findAllByUuids(Iterable<UUID> uuids);

    List<SysPermissions> delete(List<SysPermissions> sysPermissionsList);

    boolean hasAuth(UUID loginUserUuid, String path);
}
